Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check to accomodate move away from _FillValue in libnetcdf #1994

Closed
wants to merge 2 commits into from

Conversation

WardF
Copy link
Collaborator

@WardF WardF commented Sep 19, 2024

Adopted from the approach taken by GDAL to address the same issue see reference here. This will allow ParallelIO to compile without having to worry about changing any workflows around the --enable-legacy-macros flag being introduced in v4.9.3.

@jedwards4b
Copy link
Contributor

@WardF thanks - I'll have a look at the github testing tomorrow.

#if defined(NC_FillValue)
#define NCDF_FillValue NC_FillValue
#elif defined(_FillValue)
#define NCDF_Fillvalue _FillValue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think instead of introducing a third macro, just define NC_FillValue if not defined and use that everywhere.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WardF I've made the change suggested by @edwardhartnett can you give me permission to push back to your fork?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jedwards4b sorry for the radio silence, I've been at an NSF Unidata retreat for the last couple of days. I'll modify that permission!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jedwards4b The 'allow edits by maintainers' option is selected, does this not give you access to push changes to this PR? If not, maybe it would be easier (and certainly no problem from my end) to pull the changes I've proposed into a new PR that you can push and merge?

@jedwards4b jedwards4b mentioned this pull request Sep 25, 2024
@jedwards4b
Copy link
Contributor

superseded by #1995

@jedwards4b jedwards4b closed this Sep 25, 2024
@WardF WardF deleted the fillvalue_fix.wif branch September 25, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants